// 自动上传代码到服务器
let client = require('scp2')
client.scp('./dist', {
    host: '192.168.1.217',
    username: 'root',
    password: 'yzh.3663',
    path: '/opt/www-219/web-219/yzh.user'
}, function (err) {
    if (err) {
        console.log(err)
    } else {
        console.log('成功上传到192.168.1.217 test219')
    }
})
